package com.power.project.api;

import com.alibaba.fastjson2.JSONObject;
import com.power.common.domain.ResponseDTO;
import com.power.project.model.vo.feignvo.Depart;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 企业微信查询接口适配
 * @see com.power.wechat.api.IWw_userFeign
 */
public interface IDepartManagerFeign {
    /**
     * 通讯录的标签/用户信息整体读库查询
     *
     * @return
     */
    @GetMapping("/ww/tag/queryall")
    ResponseDTO<JSONObject> queryAllTag(@RequestParam("corpid") String corpid);

    /**
     * 获取本地存储的所有部门信息
     *
     * @return
     */
    @GetMapping("/ww/dept/list")
    ResponseDTO<List<Depart>> listDept(@RequestParam("corpid") String corpid);
}
